﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace BDPAutodetect.Simcore
{
    /// <summary>
    /// XML菜单数据项
    /// </summary>
    [XmlTypeAttribute(AnonymousType = true)]
    public class MenuDataItem
    {
        /// <summary>
        /// 菜单键/标识
        /// </summary>
        [XmlAttribute("ID")]
        public string ID { get; set; }

        /// <summary>
        /// 菜单名称
        /// </summary>
        [XmlAttribute("Name")]
        public string Name { get; set; }

        /// <summary>
        /// 菜单类型
        /// </summary>
        [XmlAttribute("Type")]
        public string Type { get; set; }

        /// <summary>
        /// 菜单模组
        /// </summary>
        [XmlAttribute("Module")]
        public string Module { get; set; }

        /// <summary>
        /// 构造函数
        /// </summary>
        public MenuDataItem()
        {
            this.ID = string.Empty;
            this.Name = string.Empty;
            this.Type = "None";
            this.Module = "None";
        }
    }
}
